package cn.iocoder.yudao.module.hs.controller.admin.rfid.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - RFID信息新增/修改 Request VO")
@Data
public class RfidSaveReqVO {

    @Schema(description = "RFID主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29545")
    private Long id;

    @Schema(description = "RFID编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "RFID编码不能为空")
    private String code;

    @Schema(description = "是否低电量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否低电量不能为空")
    private Boolean lowBattery;

    @Schema(description = "托盘编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "托盘编码不能为空")
    private String trayCode;

    @Schema(description = "入库时间")
    private LocalDateTime warehousingTime;

    @Schema(description = "部门ID")
    private Long deptId;
}